{include file="header.html"}
<script type="text/javascript">
    $(function() {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

<div id="rightTop">
    <ul class="subnav" style="margin:0;">
        <li><a class="btn1" href="index.php?app=account_log">{$lang.account_log}</a></li>
        <li><span>{$lang.txlog}</span></li>
        <li><a class="btn1" href="index.php?app=account_log&act=setting">{$lang.setting}</a></li>
        <li><a class="btn1" href="index.php?app=account_log&act=statistics">{$lang.statistics}</a></li>
    </ul>
</div>

<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input name="app" type="hidden" id="app" value="account_log" />
                <input name="act" type="hidden" id="act" value="txlog" />
                <select class="querySelect" name="field">{html_options options=$search_options selected=$smarty.get.field}
                </select>:<input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />
                <select class="querySelect" name="status">
                    <option value="">{$lang.shenhe_status}</option>
                    {html_options options=$tx_status_list selected=$query.status}
                </select>
                {$lang.shenqing}{$lang.add_time_from}:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                {$lang.add_time_to}:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                {$lang.order_amount_from}:<input class="queryInput2" type="text" value="{$query.order_amount_from}" name="order_amount_from" />
                {$lang.order_amount_to}:<input class="queryInput2" type="text" value="{$query.order_amount_to}" name="order_amount_to" class="pick_date" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=account_log&act=txlog">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">

    </div>
</div>

<div class="tdare">
    <table width="100%" cellspacing="0">

        <tr class="tatr1">
            <td width="20" class="firstCell">&nbsp;</td>
            <td width="140">{$lang.order_sn}</td>
            <td>{$lang.user_name}</td>
            <td>{$lang.tx_money}</td>
            <td width="120">{$lang.tx_add_time}</td>
            <td>{$lang.tx_states}</td>
            <td class="handler">{$lang.admin_edit}</td>
        </tr>

        <!--{foreach from=$account_log_list item=account_log key=key}-->
        <tr class="tatr2">
            <td width="20" class="firstCell">&nbsp;</td>
            <td>{$account_log.order_sn}</td>
            <td><b>{$account_log.user_name}</b></td>
            <td><font color="#FF0000">{$account_log.money}</font></td>
            <td>{$account_log.add_time|date:y-m-d H:i}</td>        
            <td class="table_center">
                <!--{if $account_log.states==71}-->
                <img src="{res file=style/images/positive_enabled.gif}">
                <!--{/if}-->
                <!--{if $account_log.states==70}-->
                <img src="{res file=style/images/positive_disabled.gif}">
                <!--{/if}-->
            </td>
            <td class="handler">
                
                <a href="index.php?app=account_log&act=tx_view&user_id={$account_log.user_id}&log_id={$account_log.id}"><!--{if $account_log.states==70}-->{$lang.tx_xq_shenhe}<!--{else}-->{$lang.edit}<!--{/if}--></a>
               
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="8">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $account_log_list}-->
    <div id="dataFuncs">
        <div class="pageLinks">{include file=page.bottom.html}</div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
{include file="footer.html"}